package com.xinqi.modules.prepare.common.dto.input;

import com.xinqi.common.base.dto.QuestionBaseDTO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.Valid;
import java.io.Serializable;
import java.util.List;

/**
 * @author: wenjie
 * @date: 2023/4/16 20:03
 */

@Data
@Schema(description = "备课区互动课件-导出数据对象")
public class PrepareImportCoursewareData {

    /**
     * 主键
     */
    @Schema(description = "id", example = "")
    private Long id;

    /**
     * 名称
     */
    @Schema(description = "名称", example = "")
    private String name;
    /**
     * 内容
     */
    @Schema(description = "内容", example = "")
    private String content;
    /**
     * 文件类型
     */
    @Schema(description = "文件类型", example = "")
    private String fileType;

    /**
     * 文件地址
     */
    @Schema(description = "文件地址 -- 临时", example = "")
    private String fileUrls;

    @Data
    @Valid
    @Schema(description = "备课区互动课件切片-数据对象")
    public static class PrepareImportCoursewarePartData implements Serializable {
        /**
         * 主键
         */
        @Schema(description = "id", example = "")
        private Long id;

        /**
         * 互动课件id
         */
        @Schema(description = "互动课件id", example = "")
        private Long coursewareId;
        /**
         * 名称
         */
        @Schema(description = "名称", example = "")
        private String name;
        /**
         * 切片序号
         */
        @Schema(description = "切片序号", example = "")
        private Integer pageNumber;
        /**
         * 文件类型
         */
        @Schema(description = "文件类型", example = "")
        private String fileType;

        /**
         * 切片文件路径
         */
        @Schema(description = "切片文件路径", example = "")
        private String fileUrl;

        /**
         * 题目内容
         */
        @Schema(description = "题目内容", example = "")
        private List<QuestionBaseDTO> questionContent;
    }

}
